package com.wuhenzhizao.sku.utils;

import ohos.agp.components.Component;

/**
 * 设置组件Id
 *
 * @author wuhenzhizao
 * @since 2017-08-02
 */
public class ViewUtils {
    private ViewUtils() {
    }

    /**
     * 获取控件id
     *
     * @param component
     * @return 控件id
     */
    public static int generateViewId(Component component) {
        return component.getId();
    }
}
